﻿using Models;
using MySqlSugar;
using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using System.Text;

namespace Services.IService
{
   public interface IVproductService
    {
        #region 查询

        /// <summary>
        /// 查询单条根据主键
        /// </summary>
        VproductModel GetById(int? id);

        /// <summary>
        /// 查询所有
        /// </summary>
        List<VproductModel> GetList();

        /// <summary>
        /// 根据条件查询
        /// </summary>
        List<VproductModel> GetList(Expression<Func<VproductModel, bool>> where);

        /// <summary>
        /// 按页查询
        /// </summary>
        List<VproductModel> GetPageList(Expression<Func<VproductModel, bool>> where, int pageIndex, int pageSize, string OrderFields);
        #endregion
        
    }
}
